<informationdomains>
    <?php foreach($collections as $collection): ?>
    <informationdomain>
        <uin><?php echo $collection->getUin() ?></uin>
        <name><?php echo $collection ?></name>


            <?php foreach($collection->getCompressedPropertyValueArrayForIdentifiers(sfConfig::get('app_travide_link_list_information_domain_property_idents')) as $propLabel => $propValue): ?>
        <property>
            <label><?php echo $propLabel ?></label>
            <value><?php echo $propValue ?></value>
        </property>
            <?php endforeach; ?>
            <?php foreach($collection->getRelationsByIdentifierArray(sfConfig::get($showRelationTypeVarName)) as $relation): ?>
        <relation>

            <relationUin><?php echo $relation->getUin() ?></relationUin>
            <type><?php echo $relation->getRelationType()->getTypeName() ?></type>
            <relatedItemUin><?php echo $relation->getRelatedItem()->getUin() ?></relatedItemUin>
            <name><?php echo $relation->getRelatedItem() ?></name>

                    <?php foreach($relation->getRelatedItem()->getCompressedPropertyValueArrayForIdentifiers(sfConfig::get('app_travide_link_list_related_property_idents')) as $propLabel => $propValue): ?>
            <property>
                <label><?php echo $propLabel?></label>
                <value><?php echo $propValue ?></value>
            </property>
                    <?php endforeach; ?>
        </relation>
            <?php endforeach; ?>

    </informationdomain>
    <?php endforeach; ?>
</informationdomains>
